local localCtrl = UIManager.Controller(UIManager.ControllerName.PopupDialog, UIManager.ViewName.PopupDialog)
localCtrl.StylePopupBox = true
localCtrl.StyleStick = true
-- ui bind function implementation

local function CloseButtonClick()
    localCtrl:close()
end

function localCtrl:onCreat(data)
    view = localCtrl.View

    -- 绑定view的控件
    view.CloseButton.onClick:AddListener(CloseButtonClick)

    Debug.Log("onCreate Popup controller")
end

function localCtrl:onOpen(data)
    Debug.Log("onOpen Popup controller")
end

function localCtrl:onInteractive(active)
end

function localCtrl:onDestroy()

end